home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / arrays.exe / ARRAYS.PRJ (.txt) < prev   
Borland C/C++ Project  |  1991-10-29  |  5KB  |  41 lines

  1. Turbo C Project File 
  2. C:\BCC\INCLUDE
  3. C:\BCC\LIB
  4. 32767
  5. ~GREP
  6. -n+ $MEM(64) $NOSWAP $PROMPT $CAP MSG(GREP2MSG)void *.c 
  7. ~Turbo Assembler
  8. /MX /ZI /O $TASM
  9. Turbo ~Debugger
  10. $EXENAME
  11. Turbo ~Profiler
  12. tprof
  13. $EXENAME
  14. R~esource Compiler
  15. ~Import Librarian
  16. IMPLIB
  17. $IMPLIB
  18.                EXAMPLES OF ARRAY ASSIGNMENTS
  19. These programs show the ways that array assignments *really* work in C
  20. and C++.
  21. The problem has to do with the mysterious warnings that are produced in
  22. trying to assign values to pointers to arrays.  That is,
  23.     unsigned long (*pBigArray)[], Big1[10];
  24.     pBigArray = Big1;
  25. is not acceptable at all in BC++, and produces important warnings in ANSI C.
  26. This phenomenon, and its cure, is illustrated through compiling the two
  27. programs, ARRAYS.CPP and ARRAYS.C and looking over the diagnostic messages.
  28. >> IMPORTANT NOTE:
  29.    --------------
  30.   ADJUST THE Options/Directories OF THIS PROJECT TO YOUR CONFIGURATION FIRST.
  31.                     -- Dennis E. Hamilton
  32.                        orcmid.roch817@xerox.com
  33.                        70100.271@compuserve.com5
  34. ARRAYS.CPP
  35. YS.CPP
  36. ARRAYS.C
  37. RAYS.C
  38. INCLUDE\STDLIB.H
  39. INCLUDE\ASSERT.H
  40. ARRAYS.C
  41.